﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="ArticleAdd.aspx.cs" Inherits="Web.Admin.ArticleAdd" %>

<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="widget am-cf">
        <div class="widget-head am-cf">
            <div class="widget-title am-fl">文章添加</div>
            <div class="widget-function am-fr">
                <a href="javascript:;" class="am-icon-cog"></a>
            </div>
        </div>
        <div class="widget-body am-fr">

            <div class="am-form tpl-form-line-form">
                <div class="am-form-group">
                    <label for="user-name" class="am-u-sm-3 am-form-label">标题 <span class="tpl-form-line-small-title"></span></label>
                    <div class="am-u-sm-9">  
                           <asp:TextBox ID="TextBox_Title" runat="server"  placeholder="请输入标题" CssClass="tpl-form-input"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="RequiredFieldValidator" ControlToValidate="TextBox_Title">标题必填</asp:RequiredFieldValidator>
                        <small>请填写标题。</small>
                    </div>
                </div>
                <!--
                <div class="am-form-group">
                    <label for="user-email" class="am-u-sm-3 am-form-label">发布时间 <span class="tpl-form-line-small-title">Time</span></label>
                    <div class="am-u-sm-9">
                        <input type="text" class="am-form-field tpl-form-no-bg" placeholder="发布时间" data-am-datepicker="" readonly="">
                        <small>发布时间为必填</small>
                    </div>
                </div>
-->
                <div class="am-form-group">
                    <label for="user-phone" class="am-u-sm-3 am-form-label">作者 <span class="tpl-form-line-small-title"></span></label>
                    <div class="am-u-sm-9">
                    
                      <asp:TextBox ID="TextBox_Author" runat="server"  placeholder="请输入作者" CssClass="tpl-form-input"></asp:TextBox>
                   

                    </div>
                </div>
           
                <div class="am-form-group">
                    <label class="am-u-sm-3 am-form-label">简介 <span class="tpl-form-line-small-title"></span></label>
                    <div class="am-u-sm-9">
                      <asp:TextBox ID="TextBox_Brief" runat="server"  placeholder="请输入简介" CssClass="tpl-form-input"></asp:TextBox>
                    </div>
                </div>
                
                <div class="am-form-group">
                    <label for="user-weibo" class="am-u-sm-3 am-form-label">缩略图 <span class="tpl-form-line-small-title">缩略图</span></label>
                    <div class="am-u-sm-9">
                        <div class="am-form-group">
                           <asp:FileUpload ID="FileUpload1" runat="server" />
                            <asp:Button ID="Button_upload" runat="server" Text="上传" OnClick="Button_upload_Click" />
                            <asp:Image ID="Image1" runat="server"  Width="80" Height="80"/>
                        </div>

                    </div>
                </div>
                    <!--
                <div class="am-form-group">
                    <label for="user-weibo" class="am-u-sm-3 am-form-label">添加分类 <span class="tpl-form-line-small-title">Type</span></label>
                    <div class="am-u-sm-9">
                        <input type="text" id="user-weibo" placeholder="请添加分类用点号隔开">
                        <div>
                        </div>
                    </div>
                </div>

                <div class="am-form-group">
                    <label for="user-intro" class="am-u-sm-3 am-form-label">隐藏文章</label>
                    <div class="am-u-sm-9">
                        <div class="tpl-switch">
                            <input type="checkbox" class="ios-switch bigswitch tpl-switch-btn" checked="">
                            <div class="tpl-switch-btn-view">
                                <div>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>
                -->
                <div class="am-form-group">
                    <label for="user-intro" class="am-u-sm-3 am-form-label">文章内容</label>
                    <div class="am-u-sm-9">
                      
                        <asp:TextBox ID="TextBox_Content" runat="server" placeholder="请输入文章内容" Rows="7" TextMode="MultiLine"  ></asp:TextBox>
                        
                    </div>
                </div>
              
                <div class="am-form-group">
                    <div class="am-u-sm-9 am-u-sm-push-3">
                        <asp:Button ID="Button1" runat="server" Text="提交" CssClass="am-btn am-btn-primary tpl-btn-bg-color-success " OnClick="Button1_Click"/>
                    
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
